/**
 * For Cache issue
 *
 * @author ppkwii@gmail.com (Liu Yu Ting)
 */

package database;
import java.io.*;
//import java.util.ArrayList;
//import java.util.Collections;
//import java.util.List;

//import javax.cache.Cache;
//import javax.cache.CacheException;
//import javax.cache.CacheFactory;
//import javax.cache.CacheLoader;
//import javax.cache.CacheManager;
//import java.util.Map;
//import com.google.appengine.api.datastore.Key;
//import com.google.appengine.api.datastore.KeyFactory;
//import com.google.appengine.api.memcache.MemcacheServiceFactory;
//private List<String> TenScore  = new ArrayList<String>();
//private List<String> TenDetail = new ArrayList<String>();
public class Mcache implements Serializable {
 private String stockno;
 private String sSeason;
 public  int TotalScore ;

 private int[] TenScore = new int[10] ;
 //private String[] TenDetail = new String[10] ;
 
 public Mcache(String stockno,String sSeason,int TotalScore,int[] TenScore){
    this.stockno = stockno ;
    this.sSeason = sSeason ;
    this.TotalScore = TotalScore;
    this.TenScore = TenScore ;
    //this.TenDetail = TenDetail ;
    
 }
 
  public int GetMTotalScore(){
	 //if(stockno == stockno1){
	    return TotalScore ;	 
	 //}else{
	//	return 0; 
	 //}   
 }
 
  String GetsSeason(){
	     return sSeason;
  }
  
  public int[] GetMTenScore(){
		return TenScore ;
 }
 
  
  
  /*
   *  private Cache createCache() throws ServletException {
      Map<String, Object> props = Collections.emptyMap();
      try {
        return CacheManager.getInstance().getCacheFactory().createCache(props);
      } catch (CacheException ex) {
        throw new ServletException("Could not initialize cache:", ex);
      }
    }
   * */
  
 /*public String[] GetMTenDetail(){
		return TenDetail ;
}*/
 
 
}//end of Mcache